<%@ include file="/WEB-INF/jsp/includes/include.jsp"%>

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>NoAssertions.com</title>
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/reset.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/text.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/960.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/nastyle.css" />
</head>
<%@ include file="/WEB-INF/jsp/includes/bodyheader.jsp"%>

		<internal id="fitid">${fitid}</internal>
		<!--  start center section -->
		<div id="centerSection" class="grid_12">	
			<div class="grid_2 alpha">
				<%@ include file="/WEB-INF/jsp/includes/usermenu.jsp"%>
			</div>
			<div class="grid_8">			
				<c:choose>
					<c:when test="${empty fits}">
						<p>You do not currently have any fits associated with your account. <b><a href="<fmt:message bundle="${mess}" key="servletUrl" />fit/new">Please contribute a new fit.</a></b></p>
					</c:when>
					<c:otherwise>
						<h2>${emailAddress}'s Fits</h2>
						<c:forEach var="fit" items="${fits}">
							<ul>
								<li><b><a href="<fmt:message bundle="${mess}" key="servletUrl" />home?fitid=${fit.fitid}">View Fit</a></b></li>
								<li>${firstname} ${lastname}</li>
								<li>Date of Fit: <fmt:formatDate  value="${fit.dateofmeasurement}" type="date" dateStyle="full" pattern="yyyy-MM-dd"/></li>
								<li>Saddle Height: ${fit.saddleheight}</li>
								<li>Center to Bars: ${fit.centertobars}</li>
								<li>Center to Saddle: ${fit.centertosaddle}</li>
								<li>Floor to Saddle: ${fit.floortosaddle}</li>
								<li>Floor to Bars: ${fit.floortobars}</li>
								<c:choose>
									<c:when test="${empty fit.notes}">
										<li>Notes: No notes associated with this fit</li>
									</c:when>
									<c:otherwise>
										<li>Notes: ${fit.notes}</li>
									</c:otherwise>
								</c:choose>					
							</ul>
						</c:forEach>			
					</c:otherwise>
				</c:choose>					
			</div>
			
			<div id="fitnums" class="grid_2 omega">    		
			</div>
		</div>
		<div class="clear"></div>
		<!--  end center section -->
<%@ include file="/WEB-INF/jsp/includes/footer.jsp"%>		